/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group2assignone.ucm.manager;

import group2assignone.func.UCCtoALAdapter;
import group2assignone.model.GSTax;
import group2assignone.ucm.UCController;
import group2assignone.view.manager.EditGSTView;

/**
 *
 * @author Brad
 */
class UCUIEditGST implements UCController{
private EditGSTView editView = new EditGSTView();

    /**
     * initialises edit view
     * @param view
     */
    public UCUIEditGST(EditGSTView view) {
        this.editView = view;
        editView.go();
    }

   

    @Override
    public void run() {
       // Flight f = new Flight();
        //boolean exists = false;
        GSTax tax = GSTax.getInstanceGSTax();

        UCEditGSTSave ucegs = new UCEditGSTSave(editView, tax);
        editView.setSaveAL(new UCCtoALAdapter(ucegs));

        UCEditGSTCancel ucegc = new UCEditGSTCancel(editView);
        editView.setCancelAL(new UCCtoALAdapter(ucegc));


    }
}


